package com.ydlclass.transport.message;

import java.security.PublicKey;

/**
 * handler里面的常亮
 * @author Knife
 */
public class MessageFormatConstant {

    public final static byte[] MAGIC = "yrpc".getBytes();
    public final static byte VERSION = 1;
    /**
     * 头部信息长度占用的字节数
     */
    public static final int HEADER_FIELD_LENGTH = 2;
    /**
     * 头部信息的长度
     */
    public final static byte HEADER_LENGTH = (byte) (MAGIC.length + 1 + 2 + 4 + 1 + 1 + 1 + 8 + 8);
    /**
     * 最大长度
     */
    public final static int MAX_FRAME_LENGTH = 1024*1024;
    public static final int VERSION_LENGTH = 1;
    /**
     * 总长度占用的字节数
     */
    public static final int FULL_FIELD_LENGTH = 4;
}
